[−][src]Crate raur
raur
raur is a library for interacting with the aurweb RPC Interface.
See also the Arch wiki page for more information.
Example
// Use `search` to search using keywords (multiple strategies available) let pkgs = raur::search("pacman")?; assert!(pkgs.len() > 10); for pkg in pkgs { println!("{:<30}{}", pkg.name, pkg.version); } // Use `info` to get info about a list of packages. Not-found packages are silently ignored. let pkgs = raur::info(&["spotify", "discord-canary"])?; assert_eq!(pkgs.len(), 2); for pkg in pkgs { println!("{:<30}{}", pkg.name, pkg.version); }
Structs
Handle | A handle for making AUR requests. |
Package | The package info that a query will return. |
Enums
Error | The error type for raur. |
SearchBy | What field to search by. |
Statics
AUR_URL | The default URL used for the AUR. |
Traits
Raur | The trait for RPC functionality. |
Functions
info | Performs an AUR info request. |
orphans | Returns a list of all orphan packages in the AUR. |
search | Performs an AUR search request by NameDesc. |
search_by | Performs an AUR search request. |